﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 收货单明细
    /// </summary>
    [SqlSugar.SugarTable(TableName = "TReceivingBillDetails")]
    public partial class TReceivingBillDetail
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 关联单Id
        /// </summary>
        public int BillId { get; set; }
        /// <summary>
        /// 关联单号
        /// </summary>
        public string BillNo { get; set; }
        /// <summary>
        /// 行号
        /// </summary>
        public string BillLineNo { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料描述
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料类型编码
        /// </summary>
        public string MaterialTypeCode { get; set; }
        /// <summary>
        /// 物料类型名称
        /// </summary>
        public string MaterialTypeName { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal Qty { get; set; }
        /// <summary>
        /// 收货数量
        /// </summary>
        public decimal ReceivedQty { get; set; }
        /// <summary>
        /// 状态：0-未收货；1-已收货；
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 确定时间
        /// </summary>
        public DateTime? ConfirmDate { get; set; }
        /// <summary>
        /// 采购单号
        /// </summary>
        public string PurchaseOrderNo { get; set; }
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? ProductDate { get; set; }
        /// <summary>
        /// 供应商Id
        /// </summary>
        public int? SupplierId { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string SupplierName { get; set; }
        /// <summary>
        /// 货主Id
        /// </summary>
        public int? OwnerId { get; set; }
        /// <summary>
        /// 货主
        /// </summary>
        public string OwnerName { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        public string BatchNo { get; set; }
        /// <summary>
        /// CheckedQTY
        /// </summary>
        public decimal? CheckedQty { get; set; }
        /// <summary>
        /// 需质检数量
        /// </summary>
        public decimal? NeedCheckQty { get; set; }
        /// <summary>
        /// 是否需质检
        /// </summary>
        public bool? IsNeedQc { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 总计
        /// </summary>
        public decimal? TotalPrice { get; set; }
        /// <summary>
        /// 批次号说明
        /// </summary>
        public string? BatchNoExplain { get; set; }
        /// <summary>
        /// 生产厂家
        /// </summary>
        public string? ProduceFactory { get; set; }
        /// <summary>
        /// 出场日期
        /// </summary>
        public DateTime? OutFactoryDate { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string materialNorms { get; set; }

        /// <summary>
        /// 物资明细id
        /// </summary>
        public int checkInfoId { get; set; }

        /// <summary>
        /// 库位编号
        /// </summary>
        public string storeLocationId { get; set; }

        /// <summary>
        /// 有效日期
        /// </summary>
        public DateTime? ExpireDate { get; set; }

        /// <summary>
        /// 需求部门名称
        /// </summary>
        public string deptName { get; set; }
    }
}
